import request from '@/utils/request'

// 获取列表
export const GetMenuAPI = () => {
  return request({
    url: '/system/menu/getMenu/list',
    method: 'get'
  })
}

// 获取快捷入口列表

export const GetShortcutsAPI = () => {
  return request({
    url: '/system/sys-workbench/list',
    method: 'get'
  })
}

// 提交快捷列表
export const AddShortcutsAPI = data => {
  return request({
    url: '/system/sys-workbench/addOrUpdate',
    method: 'POST',
    data
  })
}

// 公告列表
export const GetNoticeListAPI = params => {
  return request({
    url: '/system/notice/list',
    method: 'GET',
    params
  })
}

// 审核代办分页列表
export const GetAuditListAPI = params => {
  return request({
    url: '/system/sys-workbench-audit-agent/list',
    method: 'GET',
    params
  })
}

// 审核代办分页列表
export const GetMessageAPI = params => {
  return request({
    url: '/system/workbench-message/list',
    method: 'GET',
    params
  })
}

// 审核代办分页列表
export const AllReadAPI = data => {
  return request({
    url: '/system/workbench-message/updateStatus',
    method: 'PUT',
    data
  })
}

// 获取未读消息总数
export const GetNoMessageAPI = data => {
  return request({
    url: '/system/workbench-message/getNoMessage',
    method: 'GET'
  })
}
